package com.zrh.jsd.common.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel("用于响应类上，表示一个返回响应数据的信息")
@Data
public class UserRecord implements Serializable {
    private static final long serialVersionUID = -9056662182129223777L;

    @ApiModelProperty(value = "姓名", required = true)
    private String name;
    @ApiModelProperty(value = "描述", required = true)
    private String desc;
    @ApiModelProperty(value = "描述1", required = true)
    private String desc1;
    @ApiModelProperty(value = "描述2", required = true)
    private String desc2;
    @ApiModelProperty(value = "年龄")
    private int age;
    @ApiModelProperty(value = "性别")
    private int sex;
    @ApiModelProperty(value = "生日")
    private Date birthday;

    public UserRecord(String name ) {
        this.name = name;
    }

    public UserRecord(String name, int age, int sex, Date birthday) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.birthday = birthday;
    }

    public UserRecord(String name, String desc, String desc1, String desc2, int age, int sex, Date birthday) {
        this.name = name;
        this.desc = desc;
        this.desc1 = desc1;
        this.desc2 = desc2;
        this.age = age;
        this.sex = sex;
        this.birthday = birthday;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
